import { createApp } from 'vue'
import router from './router/index'
import App from './App.vue'
import ElementPlus from 'element-plus'
import 'element-plus/theme-chalk/index.css';
import store from './store/index'
import * as ElIconModules from '@element-plus/icons'
const app = createApp(App)
export default app
//  统一注册el-icon图标
for(let iconName in ElIconModules){
    app.component(iconName,ElIconModules[iconName])
}
app.use(ElementPlus)
app.use(router)
app.use(store)
app.mount('#app')